<nz-card [nzTitle]="cardTitle" [nzExtra]="extraTemplate">

  <nz-table #basicTable [nzData]="ml">
    <thead>
    <tr>
      <th>入库批次</th>
      <th>品名</th>
      <th>产品信息</th>
      <th>入库日期</th>
      <th>数量</th>
      <th>规格</th>
      <th>供应商</th>
      <th>采购人员</th>
      <th>仓库操作员</th>
      <th>操作</th>

    </tr>
    </thead>
    <tbody>
    <tr *ngFor="let data of basicTable.data">
      <td>{{data.pc}}</td>
      <td>{{data.pm}}</td>
      <td>{{data.cpxx}}</td>
      <td>{{data.rkrq | date:'yyyy年MM月dd日'}}</td>
      <td>{{data.sl}}</td>
      <td>{{data.gg}}</td>
      <td>{{data.gys}}</td>

      <td>{{data.cgy}}</td>


      <td>{{data.ckgly}}</td>
      <!--    <td>
            <p nz-typography nzCopyable  [(nzContent)]="data.blockchain"></p>
          </td>-->
      <td>
        <button nz-button nzType="primary" (click)="update(data.matariaincomingid)">修改</button>
        <button nz-button nzType="danger" (click)="delete(data.matariaincomingid)">删除</button>
      </td>
    </tr>
    </tbody>
  </nz-table>


</nz-card>
<ng-template #extraTemplate>


  <a nz-button nzType="primary" (click)="income()">入库</a>

</ng-template>


<ng-template #cardTitle>

  <nz-row [nzGutter]="16">
    <nz-col>
      <nz-statistic [nzValue]="inventorytotal" [nzTitle]="'在库包材总量'" [nzSuffix]="'个'"
                    [nzValueStyle]="{ color: '#3F8600' }"></nz-statistic>
    </nz-col>

    <nz-col *ngFor="let s of sl">
      <nz-statistic [nzValue]="s.total" [nzTitle]="s.pm" [nzSuffix]="'个'"></nz-statistic>
    </nz-col>


  </nz-row>

</ng-template>
